angular.module('faApp')
    .service('loginService', [ 'ajaxService',function (ajaxService) {

        this.login = function (user) {
            return ajaxService.post(ajaxService.getApiUri("LOGIN"),user);
        };
        //个人修改用户信息
        this.updateLoginInfo = function (user) {
            return ajaxService.post(ajaxService.getApiUri("UPDATELOGININFO"),user);
        };

        this.loginStatus = function (user) {
            return ajaxService.jsonp(ajaxService.getApiUri("LOGIN_STATUS"),user);
        };  

        this.logout = function (user) {
            return ajaxService.jsonp(ajaxService.getApiUri("LOGOUT"),user);
        };  
    }]);
 


